package com.hcc.gateway.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hcc.gateway.domain.enums.ApiStatusEnum;
import com.hcc.gateway.domain.po.ApiConfigPo;
import com.hcc.gateway.domain.req.ApiConfigQueryReq;
import com.hcc.gateway.domain.vo.ApiConfigFormVo;
import com.hcc.gateway.domain.resp.PageResult;
import com.hcc.gateway.domain.vo.ApiConfigVo;

/**
 * ApiConfigService
 *
 * @author shengjun.hu
 * @date 2021/12/29
 */
public interface ApiConfigService extends IService<ApiConfigPo> {

    void saveOrUpdateApiConfig(ApiConfigFormVo req);

    PageResult<ApiConfigVo> findApiConfigByPage(ApiConfigQueryReq req);

    void updateStatus(Long id, ApiStatusEnum statusEnum);

    ApiConfigFormVo getApiConfigById(Long id);
}
